<template>
  <div class="pingdao">
    <div class="title">全部频道</div>
    <div class="once" v-for="(v,i) in newdata" :key="i">
      <div class="left">
        <img :src="v.imgsrc" alt="" />
        <div class="zi">
          <p>{{v.title}}</p>
          <p class="num">{{v.num}}人讨论</p>
        </div>
      </div>
      <div class="more">&gt;</div>
    </div>
    <!-- <div class="once">
      <div class="left">
        <img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg1.gamersky.com%2Fimage2020%2F09%2F20200913_jjj_412_5%2Fgamersky_01small_02_202091311374CF.jpg&refer=http%3A%2F%2Fimg1.gamersky.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1648039009&t=91bc8d72ac84f739e06ca7bb18a76bc7" alt="" />
        <div class="zi">
          <p>原神</p>
          <p class="num">89410人讨论</p>
        </div>
      </div>
      <div class="more">&gt;</div>
    </div> -->
  </div>
</template>

<script>
export default {
  created(){
    this.$store.dispatch('getfind_pingDao',{url:"/data/dongTai/find_pingDao"})
  },
  computed:{
    newdata(){
      return this.$store.state.find_pingDao.data;
    }
  },
}
</script>

<style scoped>
.pingdao {
  min-height: 1.3rem;
  /* background-color: orange; */
  padding: 0.15rem;
}
.pingdao .title {
  height: 0.58rem;
  font-size: 0.2rem;
  font-weight: 700;
  line-height: 0.58rem;
  /* background-color: cadetblue; */
}
.pingdao .once{
  height: .7rem;
  padding: .1rem 0;
  /* background-color: paleturquoise; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(235,235,235);
}
.pingdao .once .left{
  
  height: .5rem;
  /* background-color: plum; */
  display: flex;
}
.pingdao .once .left img{
  height: 100%;
  border-radius: .05rem;
  margin-right: .1rem;
}
.pingdao .once .left .zi{
  padding-top: .06rem;
}
.pingdao .once .left .zi .num{
  font-size: .12rem;
  color: rgb(155,155,155);
}
.pingdao .once .more{
  font-size: .2rem;
  color: rgb(155,155,155);
}
</style>